﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebApplication1.Controllers
{
    public class HomeController : Controller
    {
        // GET: Home
        public ActionResult Index()
        {
            using (PingAnEntities context = new PingAnEntities())
            {
                var list = context.Sys_Agent.Where(q=>q.Name=="平安").ToList();
                return View(list);
            }
        }
    }
}